import React from "react";
import { Drawer } from "antd";
import OssFileDrawer from "./OssFileDrawer";
const DrawerMultilayer = ({
  SettingVisible, //编辑抽屉visible
  OssFileVisible, //Oss抽屉visible
  openSettingVisible, //打开setting抽屉
  closeSettingVisible, //关闭setting抽屉
  openOssFileVisible, //打开Oss抽屉
  closeOssFileVisible, //打开关闭抽屉
  handlerDataInfo,
  titleText,
  ...props
}) => {
  return (
    <div>
      <Drawer
        title={titleText}
        width={520}
        closable={false}
        onClose={closeSettingVisible}
        extra={<i className="iconfont icon-chahao" onClick={closeSettingVisible}></i>}
        visible={SettingVisible}
      >
        {props.children}
        <OssFileDrawer visible={OssFileVisible} closeOssFileVisible={closeOssFileVisible} handlerDataInfo={handlerDataInfo}></OssFileDrawer>
      </Drawer>
    </div>
  );
};
export default DrawerMultilayer;
